﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENTHANHDONG.OOP.Inhertance___Polimophism.EXCERCISES.EXCERCISE_06
{
    class ClassThuaKe: ClassBase
    {
        float KetQua;

        public float KETQUA
        {
            get { return KetQua; }
            set { KetQua = value; }
        }

        public override float Cong(float a, float b)
        {
            return a + b;
        }
        public override float Tru(float a, float b)
        {
            return a - b;
        }
        public override float Nhan(float a, float b)
        {
            return a * b;
        }
        public override float Chia(float a, float b)
        {
            return a / b;
        }

        public override void Cong1(float a, float b)
        {
            KetQua = a + b;
        }
        public override void Tru1(float a, float b)
        {
            KetQua = a - b;
        }

        public override void Nhan1(float a, float b)
        {
            KetQua = a * b;
        }

        public override void Chia1(float a, float b)
        {
            KetQua = a / b;
        }
    }
}
